package com.sl.au.entity;

import javax.persistence.*;
import java.util.Date;

@Entity
public class AuditRoot extends Root{

	/**
	 * 审批流程是否已经结束  
	 */
	@Column(name="nIsFinished")
	private Boolean finished;
	
	@Column(name="dStartDate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date startDate;
	@Column(name="dFinishDate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date finishDate;

    /**
     * 最终审批状态
     */
	@Column(name="sAuditState")
    private String auditState;
	  /**
     * 最终审批消息或意见 
     */
	@Column(name="sAuditMsg")
    private String auditMsg;
    /**
     * 审批流程实例ID
     */
	@Column(name="sProcessInstId")
    private String processInstId;
    /**
     * 实体创建者
     */
	@Column(name="sCreator")
    private String creator;


    public AuditRoot() {
    	this.auditState="未提交";
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    public String getAuditState() {
        return auditState;
    }

    public void setAuditState(String auditState) {
        this.auditState = auditState;
    }

	public String getProcessInstId() {
		return processInstId;
	}

	public void setProcessInstId(String processInstId) {
		this.processInstId = processInstId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getAuditMsg() {
		return auditMsg;
	}

	public void setAuditMsg(String auditMsg) {
		this.auditMsg = auditMsg;
	}

	public Boolean getFinished() {
		return finished;
	}

	public void setFinished(Boolean finished) {
		this.finished = finished;
	}


    
}
